<?php
/* SVN FILE: $Id: product.php 6 2008-10-14 01:18:22Z vbmendes $ */
class Product extends AppModel {

	var $name = 'Product';
	
	var $validate = array(
		'picture' => array(
			'Empty' => array(
				'check' => false
			)
		),
	);
	
	var $actsAs = array(
		'MeioUpload' => array(
			'picture' => array(
				'dir' => 'img/products',
				'allowed_mime' => array('image/jpeg', 'image/pjpeg', 'image/png'),
				'allowed_ext' => array('.jpg', '.jpeg', '.png'),
				'thumbsizes' => array(
					'normal' => array('width'=>32, 'height'=>32),
				),
				'default' => 'default.jpg'
			)
		)
	);
	
}
?>